package com.lanou.service.impl;

import com.lanou.bean.BankInfo;
import com.lanou.bean.VipInfo;
import com.lanou.mapper.BankInfoMapper;
import com.lanou.service.BankInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BankInfoServiceImpl implements BankInfoService{

    @Autowired
    private BankInfoMapper bankInfoMapper;

    @Override
    public List<BankInfo> selectBankInfoListByVipNo(String vipNo) {
        return bankInfoMapper.selectBankInfoListByVipNo(vipNo);
    }

    @Override
    public VipInfo getVipInfoAccountByVipId(Integer id) {
        return bankInfoMapper.getVipInfoAccountByVipId(id);
    }

    @Override
    public int insertSelective(BankInfo record) {
        return bankInfoMapper.insertSelective(record);
    }

    @Override
    public int selectIdByBankCardNo(String bankCardNo_b) {
        return bankInfoMapper.selectIdByBankCardNo(bankCardNo_b);
    }


}
